//
//  DCNavgiteBar.h
//  Demo
//
//  Created by Kyle on 2022/12/30.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    DCNavgiteBarStyleBlack,      //黑色标题
    DCNavgiteBarStyleWhite,     //白色标题
} DCNavgiteBarStyle;


@protocol DCNavgiteBarDelegate <NSObject>

- (void)leftBackAction:(UIButton *)sender;

@end
@interface DCNavgiteBar : UIView
//返回按钮
@property (nonatomic, strong) UIButton *backBtn;

@property (nonatomic, weak) id<DCNavgiteBarDelegate>delegate;

- (void)upDateBarStyle:(DCNavgiteBarStyle)barStyle;

- (void)updateTitleName:(NSString *)titleName;
@end

NS_ASSUME_NONNULL_END
